// 配色方案
// 背景: rgb(224,207,254) ,rgb(255,239,255)
// 按钮：rgb(181,154,254) , rgb(245,189,253)


*{
    padding: 0;
    margin: 0;
}

body{
    background: linear-gradient(45deg,rgb(181,154,254) , rgb(245,189,253)) fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;

}

.container{
    border-radius: 1rem;
    overflow: hidden;
    position: relative;
    width: 80%;
    background-color: white;
    display: flex;
    .left_img{
        // flex-grow: 0;
        // flex-shrink: 0;
        flex: 2 0 0;      
        overflow: hidden;
    }
    img{
        // width: 100%;
        // flex: 1;
    }
}

.panel{
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}
.switch span{
    color:#ccc;
    font-size: 1.4rem;
    cursor: pointer;
    &.active{
        color: rgb(181,154,254);
    }
}

.login .input#email,
.login .input#repeat{
    // display: none;
    height: 0;
    margin: 0;
    opacity: 0;
}

form{
    margin: 0 0 0 ;
    width: 12rem;
    span{
        display: block;
        font-size: .8rem;
        margin-bottom: 1rem;
        cursor: pointer;
    }
    button{
        width: 100%;
        outline: none;
        border: none;
        font-size: 1.2rem;
        padding: 5px;
        border-radius: 30px;
        background-color: rgb(181,154,254);
        color: white;
        cursor: pointer;
    }
}

.input {
    margin: 2rem 0;
    position: relative;
    transition: .6s;
    opacity: 1;
    input{
        border: none;
        border-bottom: .1rem solid rgb(181,154,254);
        outline: none;
        width: 100%;
    } 

    &::after{
        content: attr(placeholder);
        position: absolute;
        left: 0;
        top: -20%;
        font-size: 1.3rem;
        color: rgb(181,154,254);
        transition: .3s;
    }
    &.focus::after{
        top: -70%;
        font-size: 1rem;
    }
}

@media (max-width:900px) {
    .container{
        flex-direction: column;
       
        .left_img{
            flex-basis: 200px;
        }
        .panel{
            padding: 2rem;
        }
    }
}
